security {

	// see DefaultSecurityConfig.groovy for all settable/overridable properties

	active = true
    cacheUsers = false //deshabilita Hibernate cache para usuarios

	loginUserDomainClass = "com.asisto.model.User"
	authorityDomainClass = "com.asisto.model.Role"
	requestMapClass = "com.asisto.model.Requestmap"

    useRequestMapDomainClass = false // deshabilita el mapeo de url usando Requestmap

    loginFormUrl = "/"
    defaultTargetUrl = "/"

    requestMapString = """
		CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
		PATTERN_TYPE_APACHE_ANT
        /=IS_AUTHENTICATED_ANONYMOUSLY
        /js/**=IS_AUTHENTICATED_ANONYMOUSLY
        /css/**=IS_AUTHENTICATED_ANONYMOUSLY
        /images/**=IS_AUTHENTICATED_ANONYMOUSLY
        /plugins/**=IS_AUTHENTICATED_ANONYMOUSLY
		/login/**=IS_AUTHENTICATED_ANONYMOUSLY
		/admin/**=ROLE_ADMIN
		/**=IS_AUTHENTICATED_REMEMBERED
	"""

}
